﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Happy.StateManager.Configuration
{
    /// <summary>
    /// 配置接口
    /// </summary>
    public interface IIfConfig<TState, TOperation>
    {
        /// <summary>
        /// 可以转换为目标状态。
        /// </summary>
        IConfig<TState, TOperation> TransferTo(TState toState);

        /// <summary>
        /// 总是允许。
        /// </summary>
        IConfig<TState, TOperation> Ok();
    }
}
